home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / Text / Edit / Vim / todo < prev    next >
Text File  |  1994-08-13  |  19KB  |  347 lines

  1. Known problems:
  2.  
  3. If file system full and write to swap file failed, get error message for
  4.     lnum > line_count?
  5. When editing same file in two xterms, in second type ":" at first wait-return
  6.     for ".swp file exists", at exit cursor is left at top of window.
  7. Windows NT: display is not always correct.
  8. Windows NT: CTRL-C in a child shell (created with ":sh" or CTRL-Z) kills Vim.
  9. MSDOS: When using smardrive a readonly floppy will cause problems. Test for
  10.     writable directory first?
  11. Some terminals start inverting at the position where the invert code is put.
  12.     This is not handled correctly. Remove 'weirdinvert' hack.
  13. ":s/\(.*\)/\1" on line with ^M should not replace ^M by linebreaks.
  14. Replace with 'r' should set last inserted text.
  15. BS in replace mode does not work correctly with et set and after inserting a TAB.
  16. In insert mode CTRL-O . does not repeat the last CTRL-O command but the insertion.
  17. Sometimes the time stamp in the memfile is old. May be caused by opening the 
  18.     file r/w when testing for readonly.
  19. When doing a CTRL-Z and typing a command for the shell, while Vim is busy
  20.     (e.g. writing a file), the command for the shell is sometimes eaten by Vim.
  21. Find out why screen size is changed in unexpected place for Bob Beresh.
  22.  
  23.  
  24. To be checked:
  25. Check '\n' at end of some : commands (that do not have TRLBAR).
  26. Check for '\\' at the start of search commands (undocumented vi feature).
  27. Environment name expansion for 'bdir' default value does not work?
  28. Usage of isspace() vi-compatible (compared to iswhite())?
  29. Terminal initializations compared to vi. "vs" used to make cursor very visible,
  30.     or for scrollbars (Webb)?
  31. MSDOS: After writing on a network the 'w' bit for others is set.
  32. When can the 'p' and 'P' command not be redone??
  33.  
  34.  
  35. Problems that will probably not be solved:
  36.  
  37. Prolem with HPterm under X (cosentino/2).
  38. Amiga: When using quickfix with the Manx compiler we only get the first 25
  39.     errors. How do we get the rest?
  40. Amiga: The ":cq" command does not always abort the Manx compiler. Why?
  41. Linux: A file with protection r--rw-rw- is seen readonly for others. The access()
  42.     function in GNU libc is probably wrong.
  43.  
  44.  
  45. Further extentions and improvements:
  46.  
  47. Add icon setting for xterm (riehm/69, mulder/iconname.set).
  48. Make command line arguments options to be combined after a single dash, eg "-nb".
  49. When started to edit another file, make message "file 1 of 8" different.
  50. When entering text, keep other windows on same buffer updated (when a line
  51.     entered)?
  52. Amiga: When 'r' protection bit is not set, file can still be opened
  53.     but gives read errors. Check protection before opening.
  54. Bind windows together, scrolling is done in both windows synchronous
  55.     (horizontally and vertically). Use CTRL-W b?
  56. Re-select last Visual selection with "v." (exactly same text, from '[ to ']).
  57. Don't write any pages into the swapfile until the buffer has been changed.
  58. Catch terminating signals and call ml_sync_all(): SIGHUP, SIGINT, SIGQUIT,
  59.     SIGILL, SIGABRT, SIGFPE, SIGPIPE, SIGALRM, SIGTERM, SIGBUS, SIGSEGV.
  60. Change ".swp" to ".vim", because it give a hint who created the file?
  61. Use termcap 'ts' and 'fs' entries for setting the window title. Check 'hs'
  62.     and use minimum of 'ws' (if present) and Columns to truncate the title.
  63. When writing check for file exists but no permission, "Permission denied".
  64. In dosub() regexec is called twice for the same line. Try to avoid this.
  65. When line is too long to fit on screen, don't display it.
  66. When inserting makes cursor go past end of screen, scroll up in insertchar().
  67. Window updating from memline.c: insert/delete/replace line.
  68. Optimize ml_append() for speed, esp. for reading a file.
  69. V..c should keep indent when 'ai' is set, just like <count>cc.
  70. In visual select mode: Inclusion or exclusion of char under cursor depends
  71.     on movement command. "vwd" and "dw" do the same???
  72. Find out why macros of Stephen Riehm are working strange.
  73. :s///p prints the line after a substitution.
  74. Make CTRL-R (insert register contents) also work in command line mode.
  75. Updatescript() can be done faster with a string instead of a char.
  76. Add arguments to ":args", like ":next".
  77. When searching with 'n' give message when getting back where the search first
  78.     started. Remember start of search in '/ mark.
  79. Add option that scrolls screen to put cursor in middle of screen after search.
  80. Add \! to search patterns: matches string that does not match previous atom.
  81. Screen updating is inefficient with CTRL-F and CTRL-B when there are long lines.
  82. Use 'backupdir' for all backup files if it starts with '>'.
  83. When writing a file, name it "foo.new". Then rename "foo" to "foo.bak" and
  84.     "foo.new" to "foo". If dir is not writable or on write error copy "foo"
  85.     to "backupdir/foo.bak" and overwrite "foo". Check for correct group/owner
  86.     and try to set it if not. NO: this breaks with hard links.
  87.     INSTEAD: make Amiga and MSDOS work like unix: first make copy of file, then
  88.     truncate and overwrite original file. Use an option for this, default
  89.     on for Unix, off for Amiga/MSDOS.
  90. Use CTRL-E and CTRL-Y in insert mode for scroll up/down?
  91. Uppercase characters in ex commands can be made lowercase?
  92. Add t_del, code for delete key (termcap 'kD') and maybe some other keys:
  93.     'kI' insert key, 'kL' delete line, t_bs 'bs', etc.
  94. Filtering a block should only apply to the block, not to the whole lines. When
  95.     the number of lines is increased, add lines. When decreased, padd with
  96.     spaces or delete?
  97. CTRL-V > should move the block, not whole lines.
  98. Add commands to move selected text, without deselecting.
  99. Add "p" command to swap selected text with unnamed buffer.
  100. Add "P" command to insert contents of unnamed buffer, move selected text to
  101.     position of previous deleted (to swap foo and bar in " + foo")
  102. In out-of-memory situations: Free allocated space in undo (after asking).
  103. 8-bit codes between 0x80 and 0xa0 cannot be typed directly (mostly msdos
  104.     problem). Need more codes for delete key and more function keys. Use
  105.     2-byte code? (see xvim).
  106. Insert octal numbers with CTRL-V o, hexadecimal with CTRL-V x and binary
  107.     with CTRL-V b.
  108. List mappings: Once with and without ^ and ~ (meta keys). Use "F1" and "PgUp"
  109.     for MSDOS default mappings.
  110. Add option that tells which characters to display directly, e.g.
  111.     ":set gr=32-126,140-244", others are displayed with ^ and ~ and +
  112. Add option to show character value in octal, decimal, hex and screen code.
  113. How does vi detect whether a filter has messed up the screen? Check source.
  114.     After ":w !command" a wait_return?
  115. Improve screen updating code for doput() (use s_ins()).
  116. With 'p' command on last line: scroll screen up (also for terminals without
  117.     insert line command).
  118. Amiga: ExpandWildCards in amiga.c: don't expand if there are no wildcards.
  119. unix: Speedup wildcard expansion of "*", "~" and "$": do it internally, more
  120.     complicated things can still be done with the shell.
  121. Only do wildcard expansion with 'wildchar' when entering a command that has a
  122.     file name as argument (:r :w :! :e :f :n)?
  123. Unix: When comparing two file names to see if they are the same file use stat()
  124.     and compare device/inode; much faster than FullPathName()
  125. In regexp.c: "\^" after "\|" or "\(" is start of line, and "\$" before "\|"
  126.     and "\)" is end of line.
  127. Remember the "last changed" time of the edited file and check it before
  128.     overwriting; another user may have changed it.
  129. Support for command lines longer than 256 characters (for EXINIT).
  130. Option for filter when reading/writing a file for compression or crypting.
  131. Option to set time for emsg() sleep. Interrupt sleep when key is typed? sleep
  132.     before second message?
  133. Delete message after new command has been entered and have waited for key.
  134. Add "next tag" command for tags that have multiple hits.
  135. Support static tags: first search for tags with current filename: "foo.c:bar",
  136.     then for global tags (without a filename).
  137. History stack for . command?
  138. Use insert/delete char when terminal supports it.
  139. With undo with simple line delete/insert: optimize screen updating.
  140. Optimize screen redraw for slow terminals.
  141. "edit" option: when off changing the buffer is not possible.
  142. Add "-d null" for editing from a script file without displaying.
  143. Add "-R" for readonly mode (ex has it).
  144. When writing to a readonly file, ask for permission to overwrite it (if file can
  145.     be made writable) and restore file to readonly afterwards.
  146. MSDOS: search for _exrc in the directory where the binary is, instead
  147.     of using $VIM\_exrc.
  148. In insert mode: Remember the characters that were removed with backspace and
  149.     re-insert them one at a time with <key1>, all together with <key2>.
  150. Amiga: Add possibility to set a keymap. The code in amiga.c does not work yet.
  151. Implement 'redraw' option.
  152. Add possibility to put the value of an option into the text: "'lines'p
  153. Unix: WildExpand: Without csh file name with embedded space will be split in two.
  154. With wildcard expansion after '%' and '#', expand current/alternate file name, so
  155.     it can be edited.
  156. Add special code to 'sections' option to define something else but '{' or '}'
  157.     as the start of a section (e.g. one shiftwidth to the right).
  158. Nopaste option: Mappings with non-printable characters are OK.
  159. Add 'indent' option: Always use this amount of indent when starting a new line
  160.     and when formatting text.
  161. Add 'crown' option to 'Q' command: preserve indent of second line.
  162. When formatting with 'Q', break at paragraph boundaries (empty lines).
  163. When 'textwidth' is negative, use for 'Q' only, no automatic formatting.
  164. Add option 'comment', initally "/*,*,*/,#", giving the characters at start of
  165.     a line that should be left alone by the internal formatting.
  166. After formatting with Q the cursor is on the end of the last line; with = and
  167.     when formatprg is set it is at the start of the first line. Not good.
  168. Add 'scrolloff': scroll when cursor is less then 'scrolloff' lines from top/bottom.
  169. Add option to switch off ignoring braces inside quotes for "%" command??
  170. Use pipes for filtering on unix.
  171. Allow for +command and -option on any position in argv[].
  172. Add commands like ]] and [[ that do not include the line jumped to.
  173. When :unab without matching "from" part and several matching "to" parts,
  174.     delete the entry that was used last, instead of the first in the list.
  175. After :set nowrap remove superflous redraw with wrong hor. offset if cursor
  176.     is right of the screen.
  177. Add -x option: crypt/decrypt when writing/reading file.
  178. Add count to ':', gives ":.,.+count-1"
  179. Improve online help: Fit into the window (also small ones), hypertext, etc.
  180.     (See also dh1:text/vi/vi.help). View help just like a file?
  181. Support several errorformats, use the first format that matches.
  182. Recognize "$*" in 'makeprg'; replace it by the arguments to :make.
  183. Allow multiple arguments to :unmap.
  184. Add option that contains characters which are included in identifiers;
  185.     default "[a-bA-B0-9]_", for LISP "[a-bA-B0-9]_-".
  186. With :s///c highlight the pattern to be replaced and replace \&, ~, etc. when
  187.     showing the replacement pattern.
  188. Add mappings for visual mode; use marks for start/end of selected text.
  189. With ambigious mapping, print conflicting entry.
  190. In insert mode add # for CTRL-R  (alternate filename).
  191. Highlight search string when found?
  192. Command line: cursor up on empty line: go to previous command, on non-empty line:
  193.     go to previous matching command.
  194. Add command to clear all mappings, "clearmap".
  195. Add text justification option.
  196. When the edited file is a symlink, try to put the .swp file in the same dir as
  197.     the actual file. Adjust FullName().
  198. Add new operator: clear, make area white (replace with spaces)
  199. Add put function that replaces the text under it.
  200. After "inv"ing an option show the value: ":set invpaste" gives "paste is off".
  201. After ":read" set '[ and '] marks.
  202. In fileio.c replace filemess() by outputting strings after each other (only
  203.     one wait_return().
  204. After executing a shell, put tty back in raw mode (for shells that mess with
  205.     the tty settings)
  206. Make program to transform termcap entries into something that fits in tcarr
  207.     structure.
  208. Improve error messages: when expanding '%': "no filename to substitute for '%'"
  209.     when expanding '#': "no alternate filename to substitute for '#'"
  210. Put warnings in some color (errors are inverted, normal messages plain).
  211. Check handling of CTRL-V and '\' for ":" commands that do not have TRLBAR.
  212. When a file cannot be opened but does exist, give error message.
  213. If file does not exists, check if directory exists.
  214. MSDOS: t_cv and t_ci not set, but do invert char under cursor.
  215. Add option to switch off move to start of line (Waggoner/12 and 13).
  216. Command to show keys that are not used and available for mapping.
  217. Settings edit mode: make file with ":set opt=xx", edit it, parse it as ex commands.
  218. When memory gets low, reduce the number of undo levels (with confirmation).
  219. Add 'para_regex' option: regular expression for end of paragraph.
  220. tag-completion command: when tag found, replace it by the prototype, when not
  221.     found, replace it by the longest match.
  222. make listings in a more-like way (mappings, files, settings, etc.).
  223. ":set -w all": list one option per line.
  224. Before overwriting a non-writable file with ":w!" ask for permission.
  225. Amiga: test for 'w' flag when reading a file.
  226. When appending to the last line, causing it to wrap, screen redraw first does it
  227.     at a wrong position.
  228. Include patches for Russian text (Marinichev/4).
  229. Ex commands in a mapping should not be put in the command line history.
  230. Option not to change the search string when using a :tag command.
  231. Error message for ambiguous mapping: Include the arguments.
  232. Add ":retab". When "et" set, convert tabs to spaces, when "noet" vice versa.
  233.     ":retab 8" will replace tabs and spaces with the current "ts" setting
  234.     to a "ts" of 8.
  235. :table command (Webb)
  236. Add command to go to last non-blank in line (like 0 vs. ^, $ vs. ???)
  237. Add 'backupdiralways', 'bda' option for 'bdir', like 'da' for 'dir'.
  238. Add option to recognize identifiers with everything but spaces ('forth'?).
  239.     Adjust isidchar().
  240. MSDOS: How about supporting function keys #11 and #12?
  241. With blockwise visual mode and "c" command, insert same text in every line.
  242. Search filenames for starting with $HOME and replace it with "~" when displaying.
  243. For 'shell' option add possibility to give arguments for fast start (e.g. -f).
  244.     Not to be used for ":shell".
  245. Make ":e file1 file2" work like ":n file1 file2"?
  246. Give message "No lines in buffer" when last line in buffer deleted.
  247. When displaying (file xx of yy), add "not" when curbuf is not file xx.
  248. Add commands to do things in all buffers: ":Substitute", ":searchall", etc.
  249. Make ":sleep" accept floating point numbers, like ":sleep 0.01".
  250. When in replace mode and 'expandtab' set, make tab look like spaces.
  251. Support multiple search buffers, so macros can be made without side effects.
  252. With :read set '[ and '] to start/end of new lines
  253. Make builtin termcaps with a configuration file and a program to translate
  254.     it into a .h file.
  255. Use %> and #> for filename without path?
  256. Allow multiple arguments for ":edit", add them to the argument list.
  257. Allow multiple arguments for ":read", read all the files.
  258. Make options from modelines only used in the buffer where the file is read.
  259. For visual mode: "." does a search for the string in the marked area. Only
  260.     when less than two lines. What key to use for backward search?
  261. Matching with "%" should be configurable. 'matchstrings' =
  262.         (/*,*/),(^#if,^#else,^#endif)
  263. Expanding ~ and $VAR in options should be done not only for the first entry.
  264. Add 'resizecmd' option: vi command to be executed when window is resized.
  265. Do not accept mappings when waiting for key hit with --more--.
  266. Add option to make settings from modelines valid only in the file where they
  267.     were set. Reset options when starting to edit another file.
  268. Keep output from listings in a window, so you can have a look at it while
  269.     working in another window. Put cmdline in a separate window?
  270. Keyword completion code should use the case from the match.
  271. Add regular expression \{m,n\}: m to n matches. \{m\} is m matches, \{m,\} is
  272.     at least m matches. Also do \{,n\}: up to n matches.
  273. When 'backup' is not set and 'writebackup is set, use a unique name for the
  274.     backup file, don't deleted the ".bak" file.
  275.  
  276. From Elvis:
  277. fontchanges recognized "\\fB" etc.
  278. :color command
  279. :if and friends, conditional statements
  280. Read .exfilerc when starting to edit a new file (can be used to load macros for
  281.     specific file type).
  282. Change cursor shape in command/insert mode.
  283. 'flipcase' variable: upper/lower case pairs.
  284.  
  285. From nvi:
  286. 'cdpath' option.
  287. 'remapmax' option.
  288. Allow editing lines that do not fit in the window.
  289.  
  290. From xvim:
  291. Use '\' before commands to make them linewise.
  292. Allow a newline in search patterns (also for :s, can delete newline).
  293.     Add BOW, EOW, NEWL, NLORANY, NLBUTANY, magic 'n' and 'r', etc.
  294. Add register for ':', '?' and '/' commands? (yank_buf()).
  295. Support mouse control (also weissman/1). With option to switch it off to
  296.     enable copy/paste.
  297. Searching in help file.
  298. get code for backspace from termcap.
  299. Remember last cursor position, optimize setcursor().
  300.  
  301. From xvi:
  302. CTRL-_ : swap 8th bit of character
  303.  
  304. From vile:
  305. CTRL-X e: edit file name under the cursor (like ^] and *)
  306. Show unprintable characters in hex.
  307. Use scrollbar.
  308. When horizontal scrolling, use '<' and '>' for lines continuing outside of window.
  309.  
  310. Far future extentions:
  311.  
  312. Allow vertical splitting of screen (once).
  313. Allow editing beyond end of line, just like there are all spaces. Switch this
  314.     on with an option or special insert mode command. Also allow editing
  315.     above start and below end of buffer.
  316. MSdos: use extended or expanded memory.
  317. When executing macro's: Save each line for undo only once.
  318. Smart cut/paste: recognize words and adjust spaces before/after them.
  319. Add 'notwsuffixes' option: suffixes for files where 'tw' should be 0.
  320. Make files with suffix in 'suffixes' option always appear in list of matched
  321.     files, but at the end.
  322. Keyword completion: first look in the file for a match, then in a dictionary (Webb).
  323. Option verbose; when on keep the screen uptodate, when off only redisplay when
  324.     input needed.
  325. Change the output to the message line. Don't redraw the screen until the next
  326.     vi command. Remember message line for redraw. Integrate the command line
  327.     in updateScreen().
  328. Mode to keep text formatted while inserting/deleting. Use soft/hard returns with
  329.     an option to switch this off.
  330. Mode to keep C-code formatted (sort of on-line indent). Use colors for
  331.     keywords, comments, etc.
  332. Korn-shell like command line editing (like editing a single line with vi). Use
  333.     :cmap! for mappings. Can be implemented like a buffer containing command
  334.     lines.
  335. Add column numbers to ":" commands (:line1:col1,line2:col2 cmd). Block can be
  336.     selected with CTRL-V.
  337. Add 'hidecomment' option: don't display comments in /* */ and after //.
  338. Add open mode, use it when terminal has no cursor positioning.
  339. Add macro language with real functions.
  340. File in local directory to store contents of named registers and named marks.
  341.     Write when quitting, read when starting.
  342. Special "drawing mode": a line is drawn where the cursor is moved to. Backspace
  343.     deletes along the line (from jvim).
  344. Save cursor position (and other things) for a next editing session.
  345. Perform commands on multiple windows (:W%s/foo/bar/g), multiple arguments (:A)
  346.     or multiple buffers (:B).
  347.